package com.zhongge.observer;

/**
 * @ClassName ShopMember
 * @Description TODO 具体会员类
 * @Author zhongge
 * @Version 1.0
 */
public class ShopMember implements Member{
    private String memberID;//会员id

    //构造函数
    public ShopMember(String memberID) {
        this.memberID = memberID;
    }


    @Override
    public void update(String productName, double productPrice) {
        System.out.println("会员" + memberID + "收到通知：商品【" + productName + "】价格更新为" + productPrice);
    }
}
